package dk.javacode.srsm.testmodel;

import dk.javacode.srsm.annotations.Column;
import dk.javacode.srsm.annotations.Table;
import dk.javacode.srsm.converters.BooleanJdbcConverter;

@Table(name="address")
public class Address {

	@Column(primaryKey=true, nullable=false, name="id")
	private Integer id;
	
	@Column(name="street_name")
	private String streetName;
	
	@Column(name="is_public", dataConverter=BooleanJdbcConverter.class)
	private boolean isPublic;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getStreetName() {
		return streetName;
	}
	public void setStreetName(String streetName) {
		this.streetName = streetName;
	}
	
	public boolean getIsPublic() {
		return isPublic;
	}
	public void setIsPublic(boolean isPublic) {
		this.isPublic = isPublic;
	}
	
	@Override
	public String toString() {
		return "Address [id=" + id + ", streetName=" + streetName + ", isPublic=" + isPublic + "]";
	}
	
	
}
